package com.zxc.item.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "tb_sku")
public class TbSku implements Serializable {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Long id;//商品的编号，类型要指定为Long
    private Long spuId = 1L;//本次应用不涉及此字段
    private String title;//商品标题
    private String images;//商品的图片
    private Long price;//商品的价格，单位是分
    private String indexes = "";//商品分类---不涉及该字段
    private String ownSpec="";//商品参数设置
    private Boolean enable=true;//是否上架
    private Date createTime;//商品发布时间
    private Date lastUpdateTime;//最后修改时间
}
